<?php
/**
 * Created by PhpStorm.
 * User: 魏爷
 * Date: 2016/4/21
 * Time: 15:19
 */

namespace Home\Controller;


class MessageController extends BaseController
{
    /**
     * 系统消息
     **/
    public function systemMessage(){
        $getAllSystemInfo=D('SystemInfo')->getAllSystemInfo();
        $this->assign('_getAllSystemInfo',$getAllSystemInfo);
        $this->display('Message/systemMessage');
    }
    /**
     * 系统消息详情
    **/
    public function systemInfo(){
        $system_id=I('system_id');
        $getAllSystemInfoById=D('SystemInfo')->getAllSystemInfoById($system_id);
        $this->assign('_getAllSystemInfoById',$getAllSystemInfoById);
        $this->display('Message/systemInfo');
    }
    /**
     * 交易消息
     **/
    public function tradingMessage(){
        $u_id=getUserId();
        $getBookBuyInfo=D('BuyBook')->getBookBuyInfo($u_id);
        $this->assign('_getBookBuyInfo',$getBookBuyInfo);
        $this->display('Message/tradingMessage');
    }
}